package com.xinghen.ace.auth.service;

import com.xinghen.ace.auth.util.JwtAuthenticationRequest;

/**
 * @author xinghen
 * @ClassName: AuthService
 * @Package: com.xinghen.ace.auth.service
 * @Description 服务接口
 * @create 2018/5/4 15:57
 */
public interface AuthService {

    String login(JwtAuthenticationRequest authenticationRequest) throws Exception;

    String refresh(String oldToken);

    void validate(String token) throws Exception;

    Boolean invalid(String token);
}
